export interface Enum {
  code: number | string;
  desc?: string;
  extra?: string;
}

export interface Result<T> {
  code: number;
  data: T;
  path: string;
  msg: string;
  errorMsg: string;
  timestamp: string;
  extra: Record<string, string>;
}

export interface PageParams<T> {
  model: T;
  size: number;
  current: number;
  sort?: string;
  order?: string;
  extra?: any;
}

export interface PageResult<T> {
  records: T[];
  offset: number;
  pages: number;
  current: number;
  total: number;
  size: number;
  orders: any[];
}

export interface Option {
  label: string;
  remark: string;
  value: boolean | number | string;
  color: string;
}

export interface Kv {
  key: string;
  value: string;
}

export interface CodeQueryVO {
  type: string;
  excludes?: string | string[];
  extend?: Option;
  extendFirst?: boolean;
  // 查询 枚举还是字典
  isEnum?: boolean;
}

export interface AudioVO {
  id: string;
  auditStatus: number;
  reviewComments?: string;
}
export interface IdVO {
  id: string;
}

export interface StatusUpdateVO {
  id: string;
  status: number;
}
